home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Education et Sciences / Mathématiques / Matt's_Fract 1.05 / Sources / includes / AllTools.h next >
C/C++ Source or Header  |  1995-08-13  |  3KB  |  113 lines

  1. #include <Types.h>
  2. #include <Memory.h>
  3. #include <Events.h>
  4. #include <Windows.h>
  5. #include <TextEdit.h>
  6. #include <OSUtils.h>
  7. #include <ToolUtils.h>
  8. #include <SegLoad.h>
  9. #include <Desk.h>
  10. #include <math.h>
  11. #include <stdio.h>
  12. #include <scrap.h>
  13. #include <LowMem.h>
  14. #include <files.h>
  15. #include <osevents.h>
  16. #include <diskinit.h>
  17. #include <packages.h>
  18. #include <traps.h>
  19. #include <controls.h>
  20. #include <Menus.h>
  21. #include <QuickDraw.h>
  22. #include <Menus.h>
  23. #include <LowMem.h>
  24. #include <GestaltEqu.h>
  25. #include <StandardFile.h>
  26.  
  27. //VideoVars.h
  28. #include <Palettes.h>
  29.  
  30. typedef struct
  31.     {
  32.     RGBColor    fillColor;
  33.     Pattern        pattColor;
  34.     } color;
  35.  
  36. typedef struct
  37.     {
  38.     Boolean    isVideo;
  39.     Ptr        screenBase;
  40.     short    resolutionX, resolutionY;
  41.     short    rowBytes;
  42.     short    bitsPerPixel;
  43.     Rect    screenRect;
  44.     Boolean    BitDepthPossible[64];
  45.     } videoInfo, *videoInfoPtr;
  46.  
  47. typedef struct
  48.     {
  49.         RGBColor oldColor;
  50.         GrafPtr savePort;
  51.     } DrawInfo;
  52.     
  53. //RGBForeColor(&drawInfo.oldColor);
  54. //SetPort(drawInfo.savePort);
  55.  
  56. videoInfo        GetVideoInfo(void);
  57. Ptr                GetScrnBase(void);
  58. Boolean            gotDepth(short count);
  59. short             GetScrnWidth(void);
  60. short            GetScrnHeight(void);
  61. short             GetScrnDepth(void);
  62. short             GetScrnRowBytes(void);
  63. unsigned char     GetVolume(void);
  64. void            SetVolume(unsigned char SdVolumeValue);
  65. StringPtr         GetFinderName(void);
  66. void             SetFinderName(StringPtr FinderNameValue);
  67. Ptr                GetTheA5(void);
  68. void             SetTheA5(Ptr CurrentA5Value);
  69. GDHandle         GetTheGDevice(void);
  70. Rect            GetScreenRect(void);
  71.  
  72. //Dialogs.h
  73. void SetTheInfoStr(DialogPtr theDialog, short    itemNo, Str255 aValue);
  74. void SetTheInfo(DialogPtr theDialog, short    itemNo, long aValue);
  75. void CenterDialog(DialogPtr dialog, videoInfo theScreen);
  76. Rect GetDRect(DialogPtr dialog, short    itemNo);
  77. void SetDRect(DialogPtr dialog, short    itemNo, Rect rect);
  78. void ToggleCheckBox(DialogPtr dialog, short item);
  79. void SetCheck(DialogPtr dPtr, short ChkItem, short value);
  80. void GetTheInfoStr(DialogPtr theDialog, short itemNo, StringHandle string);
  81. short GetTheInfo(DialogPtr theDialog, short itemNo);
  82.  
  83. //videoTools.h
  84. void DoMoveTo(WindowPtr window,short x, short y);
  85. void DoLineTo(WindowPtr window, short x, short y, color    theColor, short copyMode, videoInfoPtr theScreen);
  86. void DoLineTo2(short x, short y, color theColor, videoInfoPtr theScreen);
  87. void DoFillRgn(WindowPtr window, RgnHandle theRect, color    theColor, short copyMode, videoInfoPtr theScreen);
  88. void DoFillRect(WindowPtr window, Rect theRect, color    theColor, short copyMode, videoInfoPtr theScreen);
  89. void DoInvertRect(WindowPtr window, Rect theRect, color theColor);
  90. void DoDrawRect(WindowPtr window, Rect theRect, color    theColor, short copyMode, videoInfoPtr theScreen);
  91. void MbarInit(void);
  92. void HideMenuBar(void);
  93. void ShowMenuBar(void);
  94. void SquareCorners(void);
  95. void RoundCorners(void);
  96. void GammaFadeOut(void);
  97. void GammaFadeIn(void);
  98. void ChangeBitDepth(short bitDepth, Boolean color);
  99. DrawInfo SetDrawInfo(WindowPtr window, color theColor, short copyMode);
  100. void ReSetDrawInfo(DrawInfo drawInfo);
  101.  
  102. //myErrors.h
  103. #define iOK                    1
  104. #define iCancel                2
  105. #define ierrorText            3
  106.  
  107. #define REMOVE_ALL_EVENTS 0
  108.  
  109. #define    badErrorDialog        200
  110. #define    fatalErrorDialog    201
  111.  
  112. void DoError(short theCode, Boolean Exit);
  113. void ErrorInit(void);